package com.educate.pojo.response;

/**
 * 状态码枚举类
 * @author xiongyu
 * @date 2021/10/29 21:26
 */
public enum ResultCode {

    /**
     * 成功返回 10001
     */
    SUCCESS(1001, "OK！"),

    ERROR(50001,"服务器错误！");

    /**
     * 状态码
     */
    private Integer Code;

    /**
     * 描述信息
     */
    private String Msg;

    ResultCode(Integer Code, String Msg) {
        this.Code = Code;
        this.Msg = Msg;
    }

    public Integer getCode() {
        return Code;
    }

    public String getMsg() {
        return Msg;
    }
}
